-- GENERATED SPELL FOR [Shorty] --


function spell0_10611(pUnit, Event) --@Mortar Animate,n/a--
pUnit:FullCastSpellOnTarget(18655,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10611', 547, 1)
end

function spell1_10611(pUnit, Event) --@Mortar Shot,n/a--
pUnit:FullCastSpellOnTarget(16786,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10611', 610, 1)
end

function Sorts_10611(pUnit, Event)
local choix_sorts_10611 = math.random(0, 1)
if choix_sorts_10611 == 0 then
pUnit:RegisterEvent('spell0_10611', 1, 1)
end
if choix_sorts_10611 == 1 then
pUnit:RegisterEvent('spell1_10611', 1, 1)
end
end

function mob10611_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10611', math.random(1500, 3000), 1)
end

function mob10611_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10611_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10611_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10611, 1, 'mob10611_Action')
RegisterUnitEvent(10611, 2, 'mob10611_Leave')
RegisterUnitEvent(10611, 3, 'mob10611_Kill')
RegisterUnitEvent(10611, 4, 'mob10611_Die')
